package UFFT_package.Example1;

import com.sun.corba.se.impl.orbutil.graph.Node;

import UFFT_package.Decision1.Decision;

public class Example {

      public String[] values; 
      public int my_class;
      
      public Example(int num)
      {
    	  values=new String[num];
      }
      
      public int lookup_value(int dim,double h)
      {
    	//for(int i=0;i<Decision.dimensions[dim].num_values;i++)
    	{
    		double at=Double.parseDouble(values[dim]);
    		if(at>h)
    			return 1;
    	}
		return 0;
		
    	  
      }

	public void setValues(String[] val) 
	{
		this.values = val;
	}

	public int getMy_class() {
		return my_class;
	}

	public void setMy_class(int myClass) {
		my_class = myClass;
	}

	public String[] getValues() {
		return values;
	}

	public int lookup_class(String next) {
		for(int i=0;i<Decision.num_classes;i++)
		{
			if(Decision.classes[i].equals(next))
				return i;
		}
		return -1; 
	}		

	
	
}
